import request from '@/utils/request'


// 查询订单评价列表
export function listOrders(query) {
  return request({
    url: '/system/distributionConfig/listOrders',
    method: 'get',
    params: query
  })
}

export function locationInfo(id) {
  return request({
    url: '/system/distributionConfig/locationInfo?ordersId='+id,
    method: 'get'
  })
}
export function getDistributionConfig(id) {
  return request({
    url: '/system/distributionConfig?configId='+id,
    method: 'get'
  })
}

export function addDistributionConfig(data) {
  return request({
    url: '/system/distributionConfig',
    method: 'post',
    data: data
  })
}

export function updateDistributionConfig(data) {
  return request({
    url: '/system/distributionConfig',
    method: 'post',
    data: data
  })
}

export function delDistributionConfig(id) {
  return request({
    url: '/system/distributionConfig/' + id,
    method: 'delete'
  })
}

